package com.ruoyi.dict.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dict.mapper.DictTeacherInfomationCategoryMapper;
import com.ruoyi.dict.domain.DictTeacherInfomationCategory;
import com.ruoyi.dict.service.IDictTeacherInfomationCategoryService;

/**
 * 教师信息资料类别字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-01
 */
@Service
public class DictTeacherInfomationCategoryServiceImpl implements IDictTeacherInfomationCategoryService 
{
    @Autowired
    private DictTeacherInfomationCategoryMapper dictTeacherInfomationCategoryMapper;

    /**
     * 查询教师信息资料类别字典
     * 
     * @param id 教师信息资料类别字典主键
     * @return 教师信息资料类别字典
     */
    @Override
    public DictTeacherInfomationCategory selectDictTeacherInfomationCategoryById(Long id)
    {
        return dictTeacherInfomationCategoryMapper.selectDictTeacherInfomationCategoryById(id);
    }

    /**
     * 查询教师信息资料类别字典列表
     * 
     * @param dictTeacherInfomationCategory 教师信息资料类别字典
     * @return 教师信息资料类别字典
     */
    @Override
    public List<DictTeacherInfomationCategory> selectDictTeacherInfomationCategoryList(DictTeacherInfomationCategory dictTeacherInfomationCategory)
    {
        return dictTeacherInfomationCategoryMapper.selectDictTeacherInfomationCategoryList(dictTeacherInfomationCategory);
    }

    /**
     * 新增教师信息资料类别字典
     * 
     * @param dictTeacherInfomationCategory 教师信息资料类别字典
     * @return 结果
     */
    @Override
    public int insertDictTeacherInfomationCategory(DictTeacherInfomationCategory dictTeacherInfomationCategory)
    {
        return dictTeacherInfomationCategoryMapper.insertDictTeacherInfomationCategory(dictTeacherInfomationCategory);
    }

    /**
     * 修改教师信息资料类别字典
     * 
     * @param dictTeacherInfomationCategory 教师信息资料类别字典
     * @return 结果
     */
    @Override
    public int updateDictTeacherInfomationCategory(DictTeacherInfomationCategory dictTeacherInfomationCategory)
    {
        return dictTeacherInfomationCategoryMapper.updateDictTeacherInfomationCategory(dictTeacherInfomationCategory);
    }

    /**
     * 批量删除教师信息资料类别字典
     * 
     * @param ids 需要删除的教师信息资料类别字典主键
     * @return 结果
     */
    @Override
    public int deleteDictTeacherInfomationCategoryByIds(Long[] ids)
    {
        return dictTeacherInfomationCategoryMapper.deleteDictTeacherInfomationCategoryByIds(ids);
    }

    /**
     * 删除教师信息资料类别字典信息
     * 
     * @param id 教师信息资料类别字典主键
     * @return 结果
     */
    @Override
    public int deleteDictTeacherInfomationCategoryById(Long id)
    {
        return dictTeacherInfomationCategoryMapper.deleteDictTeacherInfomationCategoryById(id);
    }
}
